<template>
    <div class="container">
        <h1>父组件</h1>
        <p>{{ money }}</p>
        <hr>
        <Son :money1="money" />
    </div>
</template>
<script>
import { ref } from 'vue'
import Son from './components/01_Son.vue'
export default {
    name: 'App',
    components: {
        Son
    },
    // 父组件的数据传递给子组件
    setup() {
        const money = ref(100)
        return { money }
    }
}
</script>